package com.shao.dao;

import com.shao.bean.admin;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author: com.song shao
 * @date: 2022/2/27
 * @time: 11:30
 * @version: 1.0
 */
@SuppressWarnings("all")
public interface admLoginDao {

    /**
     * 查询是否有该管理员
     *
     * @param name
     * @return
     */
    @Select("select * from admin where adm_username =#{name};")
    admin findStas(@Param("name") String name);

    /**
     * 查询管理员的信息
     *
     * @return
     */
    @Select("select * from admin ")
    List<admin> selectAdmin();
}
